<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">


<div th:fragment="header(which)">
    <nav class="navbar navbar-default navbar-inverse" style="opacity: 0.6">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">MinXu</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">


                <ul class="nav navbar-nav navbar-right">
                    <li th:classappend="${#strings.equals(which,'blog')}?'active'"><a th:href="@{/}">博客</a></li>
                    <li th:classappend="${#strings.equals(which,'sort')}?'active'"><a th:href="@{/sort}">分类</a></li>
                    <li th:classappend="${#strings.equals(which,'time')}?'active'"><a th:href="@{/time}">时间轴</a></li>
                    <li th:classappend="${#strings.equals(which,'about')}?'active'"><a th:href="@{/about}">关于我</a></li>
                    <form class="navbar-form navbar-left">
                        <div class="form-group">
                            <input type="text" class="form-control" placeholder="Search">
                        </div>
                        <button type="submit" class="btn btn-inverse">Submit</button>
                    </form>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
</div>

<!--底部-->
<footer th:fragment="footer" style="padding-bottom: 20em;height:100px;margin-top: 110px;">
    <div class="container-fluid" style="background: aliceblue;opacity: 0.7">
        <div class="row">
            <div class="col-md-3 col-sm-6 col-xs-10" style="padding-left: 10em;line-height: 160px;">
                <img th:src="@{/img/qq.png}" height="150px" width="150px" alt="长按叫好友" class="img-rounded">
            </div>

            <div class="col-md-2 col-sm-6 col-xs-10" style="padding-top: 30px;height: 160px">
                <h4 style="text-align: center;font: bold;;">最新博客</h4>
                <div style="text-align: center;line-height: 160px;line-height: 20px;">
                    用户故事<br>
                    失败要趁早 <br>
                </div>
            </div>
            <div class="col-md-3 col-sm-6 col-xs-10" style="padding-top: 30px;height: 160px">
                <h4 style="text-align: center;font: bold;">联系我</h4>
                <div style="text-align: center;line-height: 160px;line-height: 20px;">
                    Email: 754647431@qq.com<br>
                    QQ: 754647431 <br>
                </div>
            </div>
            <div class="col-md-4 col-sm-6 col-xs-10" style="height: 160px;text-align: center;padding-top: 30px">
                <h4 style="text-align: center;font: bold;">Blog</h4>
                <idv>这是我的个人博客，会分享关于编程，写作，思考相关的任何内容，<br>希望可以给来到这儿的人有所帮助...</idv>
            </div>
        </div>
        <hr>
        <div class="row" style="text-align: center;background: aliceblue">
            Copyright@2020-2020MinXuDesigened by MinXu
        </div>
    </div>


</footer>


<div th:fragment="admin(which)">
    <nav class="navbar navbar-default navbar-inverse" style="opacity: 0.6">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">MinXu</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">


                <ul class="nav navbar-nav navbar-right">
                    <li><a th:href="@{/}">前台</a></li>
                    <li th:classappend="${#strings.equals(which,'blog')}?'active'"><a th:href="@{/admin/blog}">博客管理</a></li>
                    <li th:classappend="${#strings.equals(which,'tag')}?'active'"><a th:href="@{/admin/tag}">标签管理</a></li>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
</div>


</html>